define(function(require,exports,module){
    'use strict';

    var React = require('react');
    var moment = require('moment');

    module.exports = React.createClass({displayName: "exports",
        render:function(){
            var rtime = this.props.data.rtime;
            var ctime = this.props.data.ctime;
            if(!ctime){
                ctime = rtime;
            }
            if(ctime.length > 10){
                ctime = moment(parseInt(ctime)).format('YYYY-MM-DD HH:mm:ss');
            }else{
                ctime = moment(parseInt(ctime) * 1000).format('YYYY-MM-DD HH:mm:ss');
            }

            if(rtime.length > 10){
                rtime = moment(parseInt(rtime)).format('YYYY-MM-DD HH:mm:ss');
            }else{
                rtime = moment(parseInt(rtime) * 1000).format('YYYY-MM-DD HH:mm:ss');
            }
            
            return (
                React.createElement("tr", null, 
                    React.createElement("td", null, rtime), 
                    React.createElement("td", null, ctime), 
                    React.createElement("td", null, this.props.data.money), 
                    React.createElement("td", null, this.props.data.content), 
                    React.createElement("td", null, this.props.data.description)
                )
            );
        }
    });
});